package com.zhangpu.feign.controller;

import com.zhangpu.feign.inteface.IFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zhangpu
 * @License: (C) Copyright hualala.com Corporation Limited.
 * @Contact: zhangpu@hualala.com
 * @Date: 2021.07.19 19:46
 * @Version: 1.0
 * @Description: 这个是基于接口进行调用
 * @ProjectName: spring-cloud-eureka
 */

@RestController
public class InteFaceController {

    @Autowired
    private IFeignService iFeignService;

    @GetMapping("/intefaceHi")
    public String hi(@RequestParam("name") String name){

        return iFeignService.getSpringCloudInfo(name);
    }
}